package com.sh.data.engine.application.model.dto.integration;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @auther: zigui.zdf
 * @date: 2019/1/8 14:25
 * @description:
 */
@Data
@Schema
public class OfflineTaskV2RecordResponse {

    @Schema(description = "运行记录id")
    private Long id;

    @Schema(description = "节点id")
    private Long nodeId;

    @Schema(description = "任务名称")
    private String taskName;

    @Schema(description = "运行状态 1-未运行 2-运行中 3-成功 4-失败 5-停止")
    private Integer taskStatus;

    // 0-手工执行 1-周期执行
    @Schema(description = "执行方式 0-手工执行 1-周期执行")
    private Integer execType;

    @Schema(description = "计划执行时间")
    private String planTime;

    @Schema(description = "开始执行时间")
    private String startTime;

    @Schema(description = "结束执行时间")
    private String endTime;

    @Schema(description = "总耗时")
    private BigDecimal time;

    @Schema(description = "是否关注 0-未关注 1-已关注")
    private Integer isAttention;

    @Schema(description = "责任人")
    private String userName;
}
